package mochizuki.weixin.controller;

import com.jfinal.core.Controller;
import com.jfinal.log.Log;

/**
 * Created by yzh on 2016-06-24.
 *
 */
public class IndexController extends Controller {
    static Log logger = Log.getLog(IndexController.class);

    public void index(){
        logger.debug("index");
        renderJsp("index.jsp");
    }
    public void authorres(){
        logger.debug("执行用户授权回调");
        String code=getPara("code");
        String state=getPara("state");
        setAttr("state",state);
        setAttr("code",code);
        render("/authorres.ftl");
    }
}
